<?php
//Loads configuration from database into global CI config
//author: lalene@advanzweb.com

function load_config()
{
	$CI =& get_instance();
	foreach($CI->Admin_Settings_model->listSettings()->result() as $config)
	{
		$CI->config->set_item($config->key,$config->value);
	}
}